<?php /* Smarty version 2.6.18, created on 2016-12-25 22:09:40
         compiled from teacher/teacherteach.list.tpl.php */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.header.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.left.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  <style>
		@media only screen and (max-width: 760px),(min-device-width: 768px) and (max-device-width:1024px)  {
		#mytable, #mytable thead, #mytable tbody, #mytable th, #mytable td, #mytable tr { 
			display: block; 
		}
		#mytable thead tr { 
			position: absolute;
			top: -9999px;
			left: -9999px;
		}
		#mytable td { 
			border: none;
			border-bottom: 1px solid #eee; 
			position: relative;
			padding-left:44% !important; 
			padding-top:10px ;
		}
	    #mytable tr{ margin-bottom:20px;}
		#mytable td:before { 
			position: absolute;
			top:10px;
			left:8px;
			width: 45%; 
			padding-right:10px;
			white-space: nowrap;
		}
		    #mytable td:nth-of-type(1):before { content: "学年"; }
			#mytable td:nth-of-type(2):before { content: "学期"; }
			#mytable td:nth-of-type(3):before { content: "任职情况"; }
			#mytable td:nth-of-type(4):before { content: "任课信息"; }
			#mytable td:nth-of-type(5):before { content: "教学成绩"; }
			#mytable td:nth-of-type(6):before { content: "课时"; }
			#mytable td:nth-of-type(7):before { content: "个人获奖"; }
			#mytable td:nth-of-type(8):before { content: "年度考核"; }
        }		
	</style>
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form name="myform" action="" method="get" role="form">
                <div class="box-header with-border">
                    <span class="fa fa-pencil" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                    <p class="box-title"><span></span><?php echo $this->_tpl_vars['staff']['staff_name']; ?>
教学信息</p>
                </div>
                <div class="box-body">
					<div class="col-sm-8 col-xs-12 form-group" style="padding-left:0;">
						<input type="hidden" name="staff_id" value="<?php echo $this->_tpl_vars['sid']; ?>
">
						  <label class="col-sm-2 col-xs-12 control-label text-right" style="padding:0; font-weight:500; ">
							   学年学期：
						  </label>
						  <div class="col-sm-4 col-xs-8" style="padding:0;">
							  <select class="form-control" name="semester_id">
					  <?php $_from = $this->_tpl_vars['semester_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?> 
                                <option value="<?php echo $this->_tpl_vars['value']['semester_id']; ?>
" <?php if ($this->_tpl_vars['value']['semester_id'] == $this->_tpl_vars['semester_id']): ?>selected<?php endif; ?>> <?php echo $this->_tpl_vars['value']['semester_xname']; ?>
第<?php echo $this->_tpl_vars['value']['semester_name']; ?>
学期</option>
                       <?php endforeach; endif; unset($_from); ?>
                              </select>  
						  </div>
                           <div class="col-sm-1 col-xs-3" >
							   <input type="hidden" name = 'a' value="teacher.teachlist">
							    <button style="submit" class="btn btn-warning ">查询</button> 
						  </div>						  
				    </div>
					<div style="clear:both;"></div>
                     <table class="table table-bordered"  id="mytable">
						<thead>
							<tr>
								<td>学年</td>
								<td>学期</td>
								<td>任职情况</td>
								<td>任课信息</td>
								<td>教学成绩</td>
								<td>课时</td>
								<td>个人获奖</td>
								<td>年度考核</td>
							</tr>	
						</thead>
							<tbody>

								<tr>
									<td><?php echo $this->_tpl_vars['semester_data']['semester_xname']; ?>
</td>
									<td><?php echo $this->_tpl_vars['semester_data']['semester_name']; ?>
</td>
									<td>
										<?php $_from = $this->_tpl_vars['staff']['position_data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
											<?php if ($this->_tpl_vars['value']['position_name'] != ''): ?>
												<p><?php echo $this->_tpl_vars['value']['department_name']; ?>
：<?php echo $this->_tpl_vars['value']['position_name']; ?>
</p>
											<?php else: ?>
												<p><?php echo $this->_tpl_vars['value']['research_name']; ?>
<?php echo $this->_tpl_vars['value']['prepare_name']; ?>
<?php echo $this->_tpl_vars['value']['discipline_name']; ?>
<?php echo $this->_tpl_vars['value']['grade_name']; ?>
<?php echo $this->_tpl_vars['value']['class_name']; ?>
：<?php echo $this->_tpl_vars['value']['position_type']; ?>
</p>
											<?php endif; ?>
										<?php endforeach; endif; unset($_from); ?>
									</td>
									<td>
										<?php $_from = $this->_tpl_vars['staff']['subject_data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['sss']):
?>

										 <p>所教学科：<?php echo $this->_tpl_vars['sss']['subject_name']; ?>
 ， 班级：<?php echo $this->_tpl_vars['sss']['class_name']; ?>
</p>

										<?php endforeach; endif; unset($_from); ?>
									</td>
									<td>
										 <p>期中考</p>
										 <!--<?php echo $this->_tpl_vars['staff']['subject_data']; ?>
，<?php echo $this->_tpl_vars['staff']['class_data']; ?>
，平均分：分，级排名：<?php echo $this->_tpl_vars['staff']['score_data']; ?>
<br/>
										
										 <p>期末考</p>
										 <?php echo $this->_tpl_vars['staff']['subject_data']; ?>
，<?php echo $this->_tpl_vars['staff']['class_data']; ?>
，平均分：分，级排名：<?php echo $this->_tpl_vars['staff']['score_data']; ?>
<br/>
										-->
									</td>
									<td>
										 周课时：<?php echo $this->_tpl_vars['staff']['hour_data']; ?>
<br/>
										 实际月课时：<?php $_from = $this->_tpl_vars['staff']['month']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['value']):
?>
										<?php echo $this->_tpl_vars['value']; ?>
,
										<?php endforeach; endif; unset($_from); ?>
										<br/>
										 学期总课时：<?php echo $this->_tpl_vars['staff']['semester_count']; ?>

									</td>
									<td><?php if (! $this->_tpl_vars['staff']['award_data']): ?>无<?php else: ?>
										<?php $_from = $this->_tpl_vars['staff']['award_data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['achieve']):
?>
										<p><?php echo $this->_tpl_vars['achieve']; ?>
</p>
										<?php endforeach; endif; unset($_from); ?>
										<?php endif; ?>
										
										</td>
									<td><?php if ($this->_tpl_vars['staff']['assess_data'] == '1'): ?>优秀<?php elseif ($this->_tpl_vars['staff']['assess_data'] == '2'): ?>合格<?php elseif ($this->_tpl_vars['staff']['assess_data'] == '3'): ?>不合格<?php endif; ?></td>
								</tr>

							</tbody>
					</table>
				   </div><!--box-body -->
               </form>
				 <?php echo $this->_tpl_vars['page']; ?>

           </div><!--box box-default box-solid-->
        </div><!--row-->
 </div>
  <!--主要内容结束-->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.footer.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>